import type { CardListResult, ListResult } from '@/api/model/listModel';

import { request } from '../request';

const Api = {
  BaseList: '/get-list',
  CardList: '/get-card-list',
};

export default {
  getList() {
    return request.get<ListResult>({
      url: Api.BaseList,
    });
  },
  getCardList() {
    return request.get<CardListResult>({
      url: Api.CardList,
    });
  },
};
